package sdk.pay.model;

public final class PayTypeModel implements Comparable {
    private String typename = "";
    private int typeid;
    private String contactWay = "";

    public PayTypeModel(String typename, int typeid, String contactWay) {
        this.typename = typename;
        this.typeid = typeid;
        this.contactWay = contactWay;
    }

    public PayTypeModel() {
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public int getTypeid() {
        return typeid;
    }

    public void setTypeid(int typeid) {
        this.typeid = typeid;
    }

    public void setContactWay(String contactWay) {
        this.contactWay = contactWay;
    }

    public String getContactWay() {
        return contactWay;
    }

    @Override
    public int compareTo(Object o) {
        PayTypeModel p = (PayTypeModel) o;
        return this.getTypeid() - p.getTypeid();
    }
}
